package day1112;

import java.util.Scanner;//1.

//输入double类型的成绩，用if-else判断等级
public class V9 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);//2.
        System.out.println("请输入您的考试成绩：");
        double score=sc.nextDouble();//3. sc.nextDouble()
        if(0<=score  &&   score<60){
            System.out.println("您的成绩不及格，请参加补考");
        }else if(60<=score  &&   score<75){
            System.out.println("您的成绩属于中等");
        }else if(75<=score  &&   score<85){
            System.out.println("您的成绩属于良好");
        }else if(85<=score  &&   score<=100){
            System.out.println("您的成绩属于优秀");
        }else{
            System.out.println("您输入的成绩不合法");
        }
    }
}
